package 设计模式.util.builder;

/**
 * @功能
 * @创建时间 2020/5/3
 */
public class SxtAirShipDirector1 implements AirshipDirector{
    private AirShipBuilder airShipBuilder;
    public SxtAirShipDirector1(AirShipBuilder builder){
        this.airShipBuilder =builder;
    }
    @Override
    public Airship directAirShip() {
        Engin e = airShipBuilder.builderEngin();
        EscapeTower es = airShipBuilder.buliderEscapeTower();
        OrbitalModule o = airShipBuilder.builderOrbitalModule();
        Airship airship= new Airship(o,e,es);
        return airship;
    }
}
